//
//  TTResourceCenter.h
//  Tint
//
//  Created by Kevin Wu on 9/18/12.
//  Copyright (c) 2012 EACAN Century. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Core/Core.h"
#import "Additions/Additions.h"

@interface TTResourceCenter : NSObject {
    NSMutableDictionary *_resourceMap;
}

@property(nonatomic, readonly) NSMutableDictionary *resourceMap;

+ (TTResourceCenter *)sharedObject;
+ (BOOL)hasSharedObject;
+ (void)destroySharedObject;

- (id)setResource:(id)resource forName:(NSString *)name;
- (id)resourceForName:(NSString *)name;
- (BOOL)hasResourceForName:(NSString *)name;
- (void)removeResourceForName:(NSString *)name;

- (UIImage *)setImage:(UIImage *)image forName:(NSString *)name;
- (UIImage *)imageForName:(NSString *)name;
- (BOOL)hasImageForName:(NSString *)name;
- (void)removeImageForName:(NSString *)name;

- (void)clearAll;

@end
